package mj.predictor;
 
/**
 *
 * @author dirkkoh
 */
public class MahJong implements Comparable<MahJong> {
        private int MJID;
        private String MJDesc;
        private String MJType;
        private String MJStatus;
       
        public MahJong(int mJID, String mJDesc, String mJType, String mJStatus) {
                this.MJID = mJID;
                this.MJDesc = mJDesc;
                this.MJType = mJType;
                this.MJStatus = mJStatus;
        }
 
        public int GetMJID() {
                return this.MJID;
        }
       
        public String GetMJDesc() {
                return this.MJDesc;
        }
       
        public String GetMJType() {
                return this.MJType;
        }
       
        public String GetMJStatus() {
                return this.MJStatus;
        }
 
        public void SetMJID(int mJID) {
                this.MJID = mJID;
        }
       
        public void SetMJDesc(String mJDesc) {
                this.MJDesc = mJDesc;
        }
       
        public void SetMJType(String mJType) {
                this.MJType = mJType;
        }
       
        public void SetMJStatus(String mJStatus) {
                this.MJStatus = mJStatus;
        }
 
        @Override
        public int compareTo(MahJong compareMJ) {
                // TODO Auto-generated method stub
                int compareID = ((MahJong) compareMJ).GetMJID();
                return this.MJID - compareID;
        }
}
